package com.zf.yichat.model;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "friendships")
public class RcFriendships implements Serializable {
    @Id
    private Integer id;

    @Column(name = "userId")
    private Integer userid;

    @Column(name = "friendId")
    private Integer friendid;

    @Column(name = "displayName")
    private String displayname;

    private String message;

    private Integer status;

    private String region;

    private String phone;

    private String description;

    @Column(name = "imageUri")
    private String imageuri;

    private Long timestamp;

    @Column(name = "createdAt")
    private Date createdat;

    @Column(name = "updatedAt")
    private Date updatedat;

    private static final long serialVersionUID = 1L;

    public RcFriendships(Integer id, Integer userid, Integer friendid, String displayname, String message, Integer status, String region, String phone, String description, String imageuri, Long timestamp, Date createdat, Date updatedat) {
        this.id = id;
        this.userid = userid;
        this.friendid = friendid;
        this.displayname = displayname;
        this.message = message;
        this.status = status;
        this.region = region;
        this.phone = phone;
        this.description = description;
        this.imageuri = imageuri;
        this.timestamp = timestamp;
        this.createdat = createdat;
        this.updatedat = updatedat;
    }

    public RcFriendships() {
        super();
    }

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return userId
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * @param userid
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * @return friendId
     */
    public Integer getFriendid() {
        return friendid;
    }

    /**
     * @param friendid
     */
    public void setFriendid(Integer friendid) {
        this.friendid = friendid;
    }

    /**
     * @return displayName
     */
    public String getDisplayname() {
        return displayname;
    }

    /**
     * @param displayname
     */
    public void setDisplayname(String displayname) {
        this.displayname = displayname == null ? null : displayname.trim();
    }

    /**
     * @return message
     */
    public String getMessage() {
        return message;
    }

    /**
     * @param message
     */
    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    /**
     * @return status
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * @param status
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return region
     */
    public String getRegion() {
        return region;
    }

    /**
     * @param region
     */
    public void setRegion(String region) {
        this.region = region == null ? null : region.trim();
    }

    /**
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    /**
     * @return description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description
     */
    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    /**
     * @return imageUri
     */
    public String getImageuri() {
        return imageuri;
    }

    /**
     * @param imageuri
     */
    public void setImageuri(String imageuri) {
        this.imageuri = imageuri == null ? null : imageuri.trim();
    }

    /**
     * @return timestamp
     */
    public Long getTimestamp() {
        return timestamp;
    }

    /**
     * @param timestamp
     */
    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * @return createdAt
     */
    public Date getCreatedat() {
        return createdat;
    }

    /**
     * @param createdat
     */
    public void setCreatedat(Date createdat) {
        this.createdat = createdat;
    }

    /**
     * @return updatedAt
     */
    public Date getUpdatedat() {
        return updatedat;
    }

    /**
     * @param updatedat
     */
    public void setUpdatedat(Date updatedat) {
        this.updatedat = updatedat;
    }
}